/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * ProblemDyadFrame.java
 *
 * Created on Mar 1, 2012, 2:31:28 PM
 */
/**
 *
 * @author gary
 */
public class ProblemDyadFrame extends javax.swing.JFrame {

    /** Creates new form ProblemDyadFrame */
    public ProblemDyadFrame(EditTheoryFrame.DyadTestReport dtr) {
        initComponents();
        kinTermLabel.setText(dtr.kinTerm);
        dyadDisplayArea.setText(dtr.problemText());        
        setDefaultCloseOperation(DISPOSE_ON_CLOSE);
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        titleLabel = new javax.swing.JLabel();
        dyadScrollPane = new javax.swing.JScrollPane();
        dyadDisplayArea = new javax.swing.JTextArea();
        kinTermLabel = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        titleLabel.setText("Problem Dyads for:");

        dyadDisplayArea.setColumns(20);
        dyadDisplayArea.setEditable(false);
        dyadDisplayArea.setRows(5);
        dyadScrollPane.setViewportView(dyadDisplayArea);

        kinTermLabel.setText("          ");

        org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(layout.createSequentialGroup()
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(layout.createSequentialGroup()
                        .add(29, 29, 29)
                        .add(dyadScrollPane, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 437, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .add(layout.createSequentialGroup()
                        .add(220, 220, 220)
                        .add(kinTermLabel))
                    .add(layout.createSequentialGroup()
                        .add(182, 182, 182)
                        .add(titleLabel)))
                .addContainerGap(31, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(layout.createSequentialGroup()
                .add(12, 12, 12)
                .add(titleLabel)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(kinTermLabel)
                .add(18, 18, 18)
                .add(dyadScrollPane, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 192, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(38, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JTextArea dyadDisplayArea;
    private javax.swing.JScrollPane dyadScrollPane;
    private javax.swing.JLabel kinTermLabel;
    private javax.swing.JLabel titleLabel;
    // End of variables declaration//GEN-END:variables
}
